package com.springboot.mapper;

import com.springboot.model.AssistantListFormKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

@Mapper
public interface AssistantListFormMapper {
    int deleteByPrimaryKey(AssistantListFormKey key);

    int insert(AssistantListFormKey record);

    int insertSelective(AssistantListFormKey record);

    //根据医生ID查找助理
    ArrayList<AssistantListFormKey> selectByDoctorId(Integer doctorId);


    ArrayList<AssistantListFormKey> findDoctorById(@Param("assistantId") Integer assistantId);

    Integer findDoctorById2(@Param("assistantId") Integer assistantId);

    //通过医生id查找属于自己的助理列表
    ArrayList<AssistantListFormKey> findAssistantById(Integer doctorId);
}